package com.situ.controller;

import com.situ.entity.Category;
import com.situ.entity.Type;
import com.situ.service.CategoryService;
import com.situ.service.TypeService;
import com.situ.service.impl.CategoryServiceImpl;
import com.situ.service.impl.TypeServiceImpl;

import javax.servlet.annotation.WebServlet;
import java.util.List;

/**
 * @author yangkx
 * @create 2023-09-09-9:39
 */
@WebServlet("/type")
public class TypeController extends BaseController{

    TypeService service = new TypeServiceImpl();

    //发请求去查分类数据
    public List<Type> all(){
        return service.all();
    }

}
